package com.hundsun.cprs.yyt.service.trade.domain;

import com.hundsun.cprs.yyt.common.base.DomainBase;

public class EntrustAuditLog extends DomainBase {
    private Long id;

    private String fundAccount;//筛选条件一：资金账号

    private String goodsCode;//筛选条件二：商品代码

    private Long entrustAmount;//筛选条件三：挂售数量

    private Long auditAmount;//要审核的委托单条数

    private Integer status;

    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFundAccount() {
        return fundAccount;
    }

    public void setFundAccount(String fundAccount) {
        this.fundAccount = fundAccount == null ? null : fundAccount.trim();
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode == null ? null : goodsCode.trim();
    }

    public Long getEntrustAmount() {
        return entrustAmount;
    }

    public void setEntrustAmount(Long entrustAmount) {
        this.entrustAmount = entrustAmount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Long getAuditAmount() {
        return auditAmount;
    }

    public void setAuditAmount(Long auditAmount) {
        this.auditAmount = auditAmount;
    }

    @Override
    public int hashCode() {
        return fundAccount.hashCode() + goodsCode.hashCode() + entrustAmount.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null)
            return false;
        if (this == obj)
            return true;
        if (obj instanceof EntrustAuditLog) {
            EntrustAuditLog vo = (EntrustAuditLog) obj;

            // 比较每个属性的值 一致时才返回true
            if (vo.fundAccount.equals(this.fundAccount)
                    && vo.goodsCode.equals(this.goodsCode)
                    && vo.entrustAmount.equals(this.entrustAmount))
                return true;
        }
        return false;
    }
}